import {createBrowserRouter} from "react-router-dom"
import Layout from "../pages/Layout"
import New from "../pages/New"
import Year from "../pages/Layout/Year"
import Month from "../pages/Layout/Month"
import MyInformation from "../pages/Layout/Myinformation"
import Register from "../pages/Register"
const router = createBrowserRouter([
    {
        path: '/',
        element: <Layout/>,
        children: [
            {
                path: "/year",
                element: <Year/>
            },
            {
                path: "/",
                element: <Month/>
            },
            {
                path: "/myinformation",
                element: <MyInformation/>
            }
        ]
    },
    {
        path: 'login',
        element: <New/>
    },
    {
        path: 'register',
        element: <Register/>
    },
    {
        path:"*",
        element: <div>404</div>
    }
])

export default router